package com.project.nimsen.weixin.bean;

import org.apache.commons.lang3.StringUtils;
import org.dom4j.Element;

/**
 * 接收图片信息
 * */
public class ImgRMsg extends BaseResourceRMsg {
	private String picUrl;//图片的url类型

	public String getPicUrl() {
		return picUrl;
	}

	public void setPicUrl(String picUrl) {
		this.picUrl = picUrl;
	}

	protected String info() {
		StringBuffer info = new StringBuffer(super.info());
		info.append("<PicUrl><![CDATA[").append(this.getPicUrl()).append("]]></PicUrl>");
		return info.toString();
	}

	protected void fullchildProperty(Element root) {
		super.fullchildProperty(root);
		String str_picUrl = root.elementText("PicUrl");
		if(StringUtils.isNotBlank(str_picUrl))
			this.setPicUrl(str_picUrl);
	}
}
